﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AssetTypeEntry.aspx.cs" Inherits="MTRC.ODMS.Web.SOM.CodeSetup.AssetTypeEntry" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControlToolkit" %>
<%@ Register Src="~/UserControl/Menu/PageFoot.ascx" TagName="PageFoot" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/TabStrip.ascx" TagName="TabStrip" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/PageHead.ascx" TagName="PageHead" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/MainMenu.ascx" TagName="MainMenu" TagPrefix="WebStructure" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Operational Data Management System</title>
    <link href="<%=ResolveUrl("~/CSS/common.css")%>" rel="stylesheet" type="text/css" />
    <script type="text/javascript">        
        function CheckDesc(obj)
        {
            if(obj.value.length>100)
            {
                obj.value=obj.value.substring(0,100);
            }
        }
        
        function CheckVoid(mes,uMes)
        {
            var obj = document.getElementById('chkObsolete');
            
            if(obj.checked)
            {
                var con = confirm(mes);
                
                if(con && uMes.length>0)
                {
                    var con1 = alert(uMes);
                    return false;
                }
            }
            
            return con;
        }
        
    </script>
</head>
<body>
    <form id="form1" runat="server">  
        <AjaxControlToolkit:ToolkitScriptManager ID="ToolkitScriptManager" runat="server">
        </AjaxControlToolkit:ToolkitScriptManager>      
            <table border="0" cellpadding="0" cellspacing="0" class="Page_Container">
                <tr>
                   <td colspan="2" class="Page_Head">
                        <WebStructure:PageHead ID="PageHead" runat="server" />
                    </td>
                </tr>               
                <tr>
                    <td class="Page_Left">
                        <WebStructure:MainMenu ID="MainMenu" runat="server" AppPath="../../" CurrMenuID="M140901" />
                    </td>
                    <td class="Page_Right"> 
                                           <table class="Page_Contents">
                          <tr>
                            <td class="TabStrip"><WebStructure:TabStrip ID="TabStrip" CurrMenuID="M140801" ParentMenuID="M140901" DMenuMode="CurrOnly" runat="server" /></td>
                          </tr>
                          <tr>
                            <td class="Contents">
                             <fieldset style="clear:both; margin-bottom:10px;">
                                    <legend class="title1"><asp:Label ID="lblMenuCaption" runat="server" Font-Bold="True" Font-Size="Small"
                                                CssClass="CodeSetupCaptionText">Label</asp:Label></legend>
                                 <table  style="padding-left:8px" valign="top" border="0px" width="100%">
                                    <tr>
                                        <td>
                                            <table id="Table2" cellspacing="1" cellpadding="1" width="650px" border="0">
                                            <tr>
                                                <td valign="middle" style="width:60px;"><asp:Label ID="lblStation" runat="server">Station:</asp:Label><em>*</em></td>
                                                <td valign="middle"><asp:DropDownList ID="ddlStation" runat="server" CssClass="ddlStation"></asp:DropDownList></td>
                                                <td valign="middle"><asp:Label ID="lblAssetType" runat="server">Asset Type:</asp:Label><em>*</em></td>
                                                <td valign="middle"><asp:TextBox runat="server" MaxLength="20" ID="txtAssetType" ></asp:TextBox></td>  
                                            </tr>
                                            <tr>
                                                <td valign="top"><asp:Label ID="lblDescription" runat="server">Description</asp:Label></td>
                                                <td colspan="3">
                                                    <!--Comment by jack 20151023 for U252-->
                                                    <%--<asp:TextBox runat="server" Columns="40" ID="txtDescription" TextMode="MultiLine" onkeyup="CheckDesc(this)" onblur="CheckDesc(this)" Width="98%" Height="80px" MaxLength="100" ></asp:TextBox>--%>
                                                    <asp:TextBox runat="server" Columns="40" ID="txtDescription" onkeyup="CheckDesc(this)" onblur="CheckDesc(this)" Width="86%" MaxLength="100" ></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="middle"><asp:Label ID="lblObsolete" runat="server">Obsolete:</asp:Label></td>
                                                <td colspan="3">
                                                    <asp:CheckBox ID="chkObsolete" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="4" align="right" style="padding-right:70px;"><asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
                                                <asp:Button ID="btnSaveAndReturn" runat="server" Text="Save And Return" OnClick="btnSaveAndReturn_Click" />
                                                <asp:Button ID="btnSaveAndNew" runat="server" Text="Save And New" OnClick="btnSaveAndNew_Click" />
                                                <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click" />
                                                </td>
                                            </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                                </fieldset>
                            </td>
                          </tr>
                          <tr>
                            <td class="Page_Foot" style="height: 54px"><WebStructure:PageFoot ID="PageFoot" runat="server" /></td>
                          </tr>
                       </table>                                             
                    </td>
                </tr>                
            </table>        
    </form>
</body>
</html>

